package com.siki.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.siki.pojo.commonEntity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author Siki
 * @Date 2020/6/5
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<SysUser> {

    int insertUser(SysUser sysUser);

    List<SysUser> queryUserByEq(Page page, @Param(Constants.WRAPPER) QueryWrapper<SysUser> wrapper);
}
